package org.slf4j.impl;

import java.util.concurrent.ConcurrentHashMap;

import org.slf4j.ILoggerFactory;
import org.slf4j.Logger;

public class LoggerFactory implements ILoggerFactory {

    private ConcurrentHashMap<String, Logger> loggers = new ConcurrentHashMap<>();

    public Logger getLogger(String name) {
        com.db.logger.Logger myLogger = new  com.db.logger.Logger(name);
        loggers.putIfAbsent(name, new LoggerAdapter(myLogger));
        return loggers.get(name);
    }
}